package com.TJGD.projectModule.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class projecTreviewQuery {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    protected Integer pageNo = 1;

    protected Integer startRow;

    protected Integer pageSize = 10;

    protected String fields;

    public projecTreviewQuery() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo=pageNo;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageNo() {
        return pageNo;
    }

    public void setStartRow(Integer startRow) {
        this.startRow=startRow;
    }

    public Integer getStartRow() {
        return startRow;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize=pageSize;
        this.startRow = (pageNo-1)*this.pageSize;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setFields(String fields) {
        this.fields=fields;
    }

    public String getFields() {
        return fields;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPtIdIsNull() {
            addCriterion("pt_id is null");
            return (Criteria) this;
        }

        public Criteria andPtIdIsNotNull() {
            addCriterion("pt_id is not null");
            return (Criteria) this;
        }

        public Criteria andPtIdEqualTo(Integer value) {
            addCriterion("pt_id =", value, "ptId");
            return (Criteria) this;
        }

        public Criteria andPtIdNotEqualTo(Integer value) {
            addCriterion("pt_id <>", value, "ptId");
            return (Criteria) this;
        }

        public Criteria andPtIdGreaterThan(Integer value) {
            addCriterion("pt_id >", value, "ptId");
            return (Criteria) this;
        }

        public Criteria andPtIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pt_id >=", value, "ptId");
            return (Criteria) this;
        }

        public Criteria andPtIdLessThan(Integer value) {
            addCriterion("pt_id <", value, "ptId");
            return (Criteria) this;
        }

        public Criteria andPtIdLessThanOrEqualTo(Integer value) {
            addCriterion("pt_id <=", value, "ptId");
            return (Criteria) this;
        }

        public Criteria andPtIdIn(List<Integer> values) {
            addCriterion("pt_id in", values, "ptId");
            return (Criteria) this;
        }

        public Criteria andPtIdNotIn(List<Integer> values) {
            addCriterion("pt_id not in", values, "ptId");
            return (Criteria) this;
        }

        public Criteria andPtIdBetween(Integer value1, Integer value2) {
            addCriterion("pt_id between", value1, value2, "ptId");
            return (Criteria) this;
        }

        public Criteria andPtIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pt_id not between", value1, value2, "ptId");
            return (Criteria) this;
        }

        public Criteria andPidIsNull() {
            addCriterion("pid is null");
            return (Criteria) this;
        }

        public Criteria andPidIsNotNull() {
            addCriterion("pid is not null");
            return (Criteria) this;
        }

        public Criteria andPidEqualTo(Integer value) {
            addCriterion("pid =", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotEqualTo(Integer value) {
            addCriterion("pid <>", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThan(Integer value) {
            addCriterion("pid >", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidGreaterThanOrEqualTo(Integer value) {
            addCriterion("pid >=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThan(Integer value) {
            addCriterion("pid <", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidLessThanOrEqualTo(Integer value) {
            addCriterion("pid <=", value, "pid");
            return (Criteria) this;
        }

        public Criteria andPidIn(List<Integer> values) {
            addCriterion("pid in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotIn(List<Integer> values) {
            addCriterion("pid not in", values, "pid");
            return (Criteria) this;
        }

        public Criteria andPidBetween(Integer value1, Integer value2) {
            addCriterion("pid between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPidNotBetween(Integer value1, Integer value2) {
            addCriterion("pid not between", value1, value2, "pid");
            return (Criteria) this;
        }

        public Criteria andPnameIsNull() {
            addCriterion("pname is null");
            return (Criteria) this;
        }

        public Criteria andPnameIsNotNull() {
            addCriterion("pname is not null");
            return (Criteria) this;
        }

        public Criteria andPnameEqualTo(String value) {
            addCriterion("pname =", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotEqualTo(String value) {
            addCriterion("pname <>", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameGreaterThan(String value) {
            addCriterion("pname >", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameGreaterThanOrEqualTo(String value) {
            addCriterion("pname >=", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameLessThan(String value) {
            addCriterion("pname <", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameLessThanOrEqualTo(String value) {
            addCriterion("pname <=", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameLike(String value) {
            addCriterion("pname like", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotLike(String value) {
            addCriterion("pname not like", value, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameIn(List<String> values) {
            addCriterion("pname in", values, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotIn(List<String> values) {
            addCriterion("pname not in", values, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameBetween(String value1, String value2) {
            addCriterion("pname between", value1, value2, "pname");
            return (Criteria) this;
        }

        public Criteria andPnameNotBetween(String value1, String value2) {
            addCriterion("pname not between", value1, value2, "pname");
            return (Criteria) this;
        }

        public Criteria andReviewStageIsNull() {
            addCriterion("review_stage is null");
            return (Criteria) this;
        }

        public Criteria andReviewStageIsNotNull() {
            addCriterion("review_stage is not null");
            return (Criteria) this;
        }

        public Criteria andReviewStageEqualTo(String value) {
            addCriterion("review_stage =", value, "reviewStage");
            return (Criteria) this;
        }

        public Criteria andReviewStageNotEqualTo(String value) {
            addCriterion("review_stage <>", value, "reviewStage");
            return (Criteria) this;
        }

        public Criteria andReviewStageGreaterThan(String value) {
            addCriterion("review_stage >", value, "reviewStage");
            return (Criteria) this;
        }

        public Criteria andReviewStageGreaterThanOrEqualTo(String value) {
            addCriterion("review_stage >=", value, "reviewStage");
            return (Criteria) this;
        }

        public Criteria andReviewStageLessThan(String value) {
            addCriterion("review_stage <", value, "reviewStage");
            return (Criteria) this;
        }

        public Criteria andReviewStageLessThanOrEqualTo(String value) {
            addCriterion("review_stage <=", value, "reviewStage");
            return (Criteria) this;
        }

        public Criteria andReviewStageLike(String value) {
            addCriterion("review_stage like", value, "reviewStage");
            return (Criteria) this;
        }

        public Criteria andReviewStageNotLike(String value) {
            addCriterion("review_stage not like", value, "reviewStage");
            return (Criteria) this;
        }

        public Criteria andReviewStageIn(List<String> values) {
            addCriterion("review_stage in", values, "reviewStage");
            return (Criteria) this;
        }

        public Criteria andReviewStageNotIn(List<String> values) {
            addCriterion("review_stage not in", values, "reviewStage");
            return (Criteria) this;
        }

        public Criteria andReviewStageBetween(String value1, String value2) {
            addCriterion("review_stage between", value1, value2, "reviewStage");
            return (Criteria) this;
        }

        public Criteria andReviewStageNotBetween(String value1, String value2) {
            addCriterion("review_stage not between", value1, value2, "reviewStage");
            return (Criteria) this;
        }

        public Criteria andReviewDateIsNull() {
            addCriterion("review_date is null");
            return (Criteria) this;
        }

        public Criteria andReviewDateIsNotNull() {
            addCriterion("review_date is not null");
            return (Criteria) this;
        }

        public Criteria andReviewDateEqualTo(Date value) {
            addCriterion("review_date =", value, "reviewDate");
            return (Criteria) this;
        }

        public Criteria andReviewDateNotEqualTo(Date value) {
            addCriterion("review_date <>", value, "reviewDate");
            return (Criteria) this;
        }

        public Criteria andReviewDateGreaterThan(Date value) {
            addCriterion("review_date >", value, "reviewDate");
            return (Criteria) this;
        }

        public Criteria andReviewDateGreaterThanOrEqualTo(Date value) {
            addCriterion("review_date >=", value, "reviewDate");
            return (Criteria) this;
        }

        public Criteria andReviewDateLessThan(Date value) {
            addCriterion("review_date <", value, "reviewDate");
            return (Criteria) this;
        }

        public Criteria andReviewDateLessThanOrEqualTo(Date value) {
            addCriterion("review_date <=", value, "reviewDate");
            return (Criteria) this;
        }

        public Criteria andReviewDateIn(List<Date> values) {
            addCriterion("review_date in", values, "reviewDate");
            return (Criteria) this;
        }

        public Criteria andReviewDateNotIn(List<Date> values) {
            addCriterion("review_date not in", values, "reviewDate");
            return (Criteria) this;
        }

        public Criteria andReviewDateBetween(Date value1, Date value2) {
            addCriterion("review_date between", value1, value2, "reviewDate");
            return (Criteria) this;
        }

        public Criteria andReviewDateNotBetween(Date value1, Date value2) {
            addCriterion("review_date not between", value1, value2, "reviewDate");
            return (Criteria) this;
        }

        public Criteria andReviewStyleIsNull() {
            addCriterion("review_style is null");
            return (Criteria) this;
        }

        public Criteria andReviewStyleIsNotNull() {
            addCriterion("review_style is not null");
            return (Criteria) this;
        }

        public Criteria andReviewStyleEqualTo(String value) {
            addCriterion("review_style =", value, "reviewStyle");
            return (Criteria) this;
        }

        public Criteria andReviewStyleNotEqualTo(String value) {
            addCriterion("review_style <>", value, "reviewStyle");
            return (Criteria) this;
        }

        public Criteria andReviewStyleGreaterThan(String value) {
            addCriterion("review_style >", value, "reviewStyle");
            return (Criteria) this;
        }

        public Criteria andReviewStyleGreaterThanOrEqualTo(String value) {
            addCriterion("review_style >=", value, "reviewStyle");
            return (Criteria) this;
        }

        public Criteria andReviewStyleLessThan(String value) {
            addCriterion("review_style <", value, "reviewStyle");
            return (Criteria) this;
        }

        public Criteria andReviewStyleLessThanOrEqualTo(String value) {
            addCriterion("review_style <=", value, "reviewStyle");
            return (Criteria) this;
        }

        public Criteria andReviewStyleLike(String value) {
            addCriterion("review_style like", value, "reviewStyle");
            return (Criteria) this;
        }

        public Criteria andReviewStyleNotLike(String value) {
            addCriterion("review_style not like", value, "reviewStyle");
            return (Criteria) this;
        }

        public Criteria andReviewStyleIn(List<String> values) {
            addCriterion("review_style in", values, "reviewStyle");
            return (Criteria) this;
        }

        public Criteria andReviewStyleNotIn(List<String> values) {
            addCriterion("review_style not in", values, "reviewStyle");
            return (Criteria) this;
        }

        public Criteria andReviewStyleBetween(String value1, String value2) {
            addCriterion("review_style between", value1, value2, "reviewStyle");
            return (Criteria) this;
        }

        public Criteria andReviewStyleNotBetween(String value1, String value2) {
            addCriterion("review_style not between", value1, value2, "reviewStyle");
            return (Criteria) this;
        }

        public Criteria andReviewReslutIsNull() {
            addCriterion("review_reslut is null");
            return (Criteria) this;
        }

        public Criteria andReviewReslutIsNotNull() {
            addCriterion("review_reslut is not null");
            return (Criteria) this;
        }

        public Criteria andReviewReslutEqualTo(String value) {
            addCriterion("review_reslut =", value, "reviewReslut");
            return (Criteria) this;
        }

        public Criteria andReviewReslutNotEqualTo(String value) {
            addCriterion("review_reslut <>", value, "reviewReslut");
            return (Criteria) this;
        }

        public Criteria andReviewReslutGreaterThan(String value) {
            addCriterion("review_reslut >", value, "reviewReslut");
            return (Criteria) this;
        }

        public Criteria andReviewReslutGreaterThanOrEqualTo(String value) {
            addCriterion("review_reslut >=", value, "reviewReslut");
            return (Criteria) this;
        }

        public Criteria andReviewReslutLessThan(String value) {
            addCriterion("review_reslut <", value, "reviewReslut");
            return (Criteria) this;
        }

        public Criteria andReviewReslutLessThanOrEqualTo(String value) {
            addCriterion("review_reslut <=", value, "reviewReslut");
            return (Criteria) this;
        }

        public Criteria andReviewReslutLike(String value) {
            addCriterion("review_reslut like", value, "reviewReslut");
            return (Criteria) this;
        }

        public Criteria andReviewReslutNotLike(String value) {
            addCriterion("review_reslut not like", value, "reviewReslut");
            return (Criteria) this;
        }

        public Criteria andReviewReslutIn(List<String> values) {
            addCriterion("review_reslut in", values, "reviewReslut");
            return (Criteria) this;
        }

        public Criteria andReviewReslutNotIn(List<String> values) {
            addCriterion("review_reslut not in", values, "reviewReslut");
            return (Criteria) this;
        }

        public Criteria andReviewReslutBetween(String value1, String value2) {
            addCriterion("review_reslut between", value1, value2, "reviewReslut");
            return (Criteria) this;
        }

        public Criteria andReviewReslutNotBetween(String value1, String value2) {
            addCriterion("review_reslut not between", value1, value2, "reviewReslut");
            return (Criteria) this;
        }

        public Criteria andMarkIsNull() {
            addCriterion("mark is null");
            return (Criteria) this;
        }

        public Criteria andMarkIsNotNull() {
            addCriterion("mark is not null");
            return (Criteria) this;
        }

        public Criteria andMarkEqualTo(String value) {
            addCriterion("mark =", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkNotEqualTo(String value) {
            addCriterion("mark <>", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkGreaterThan(String value) {
            addCriterion("mark >", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkGreaterThanOrEqualTo(String value) {
            addCriterion("mark >=", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkLessThan(String value) {
            addCriterion("mark <", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkLessThanOrEqualTo(String value) {
            addCriterion("mark <=", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkLike(String value) {
            addCriterion("mark like", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkNotLike(String value) {
            addCriterion("mark not like", value, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkIn(List<String> values) {
            addCriterion("mark in", values, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkNotIn(List<String> values) {
            addCriterion("mark not in", values, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkBetween(String value1, String value2) {
            addCriterion("mark between", value1, value2, "mark");
            return (Criteria) this;
        }

        public Criteria andMarkNotBetween(String value1, String value2) {
            addCriterion("mark not between", value1, value2, "mark");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}